﻿using Abp.Domain.Entities.Auditing;
using KDS.Mes.Mes.AlcCodes;
using KDS.Mes.Mes.Lines;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.LineAlcCodes
{
    /// <summary>
    /// 线体/AlcCode信息
    /// </summary>
    [Table("T_BomLineAlcCode")]
    public class LineAlcCode : FullAuditedEntity
    {
        [ForeignKey("LineId")]
        public virtual Line Line { get; set; }
        public virtual int LineId { get; set; }

        [ForeignKey("AlcCodeId")]
        public virtual AlcCode AlcCode { get; set; }
        public virtual int AlcCodeId { get; set; }

        public LineAlcCode(int lineId, int alcCodeId)
        {
            LineId = lineId;
            AlcCodeId = alcCodeId;
        }

        public LineAlcCode()
        {

        }
    }
}
